<?php

namespace App\Common\Api;

/**
 * 建议每个模块定义code错误码区间，方便管理
 * code码类：App\common\SystemMessage类对应
 */
interface SystemCode
{
    const SYSTEM_SUCCESS = '0';
    const SYSTEM_ERROR = '4000';
    const SYSTEM_LOGIN_SUCCESS = '0';
    const SYSTEM_LOGIN_FAIL = '40001';
    const SYSTEM_LOGOUT_SUCCESS = '0';
    const SYSTEM_LOGOUT_FAIL = '40002';
    const SYSTEM_ERROR_PARAM_NULL = '4003';
    const SYSTEM_ERROR_USER_OR_PASS = '4004';
    const SYSTEM_TOKEN_EXPIRED = '4005';
    const SYSTEM_TOKEN_INVALID = '4006';
    const SYSTEM_TOKEN_NOT_EMPTY = '4007';
    const SYSTEM_TOKEN_LOGOFF = '4008';
    const SYSTEM_API_INVALID = '4009';
}

